package com.uppalz.fundmanager.beans;

import com.uppalz.fundmanager.dao.DAO;
import com.uppalz.fundmanager.entities.FundMember;
import java.util.List;

/**
 *
 * @author Zafar
 */
public class MembersBean extends FundMember {

    public MembersBean() {
    }

    public void save() {
        DAO.get().createNewMember(getEmail(), getName(), getContactNumber());
    }

    public List<FundMember> get() {
        return DAO.get().getAllMembers();
    }
}
